#ifndef RTT_H
#define RTT_H
#include "Includes.h"

class RenderToTexture
{
public:
	RenderToTexture(int scaleDown=1);
	~RenderToTexture();

	GLuint getTexture() { return m_texture; }
	void begin();
	void end();

private:
	bool active;

	GLuint m_texture;
	GLuint m_frameBuffer;
	GLuint m_depthBuffer;
	int w,h;
};

#endif
